package com.qaml.mes.device.domain.convert;

import com.qaml.mes.device.dao.DayOffConfigDO;
import com.qaml.mes.device.dto.dayoff.DayOffPageReqDTO;
import com.qaml.mes.device.dto.dayoff.DayOffSaveReqDTO;
import com.qaml.mes.device.vo.dayoff.DayOffRespVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DayOffConvert {

    DayOffConvert INSTANCE = Mappers.getMapper(DayOffConvert.class);


    DayOffConfigDO reqDTO2DO(DayOffSaveReqDTO dayOffSaveReqDTO);

    DayOffConfigDO pageReqDTO2DO(DayOffPageReqDTO reqDTO);

    List<DayOffRespVO> dos2pageVos(List<DayOffConfigDO> records);
    
}
